/*
 * Sycloud.com Inc.
 * Copyright (c) 2005-2066 All Rights Reserved.
 */
package com.insigma.business.qrcode.welfare._consumer.impl;


import com.insigma.business.qrcode.common.template.BasePagingResponse;
import com.insigma.business.qrcode.common.vo.BaseDeleteRequest;
import com.insigma.business.qrcode.common.vo.BaseResponse;
import com.insigma.business.qrcode.soldier.request.BaseGetRequest;
import com.insigma.business.qrcode.welfare.dto.CareWelfareServiceOrganizationDTO;
import com.insigma.business.qrcode.welfare.request.CareWelfareServiceOrganizationInsertRequest;
import com.insigma.business.qrcode.welfare.request.CareWelfareServiceOrganizationSearchRequest;
import com.insigma.business.qrcode.welfare._consumer.CareWelfareServiceOrganizationConsumer;
import com.insigma.business.qrcode.welfare._provider.CareWelfareServiceOrganizationProvider;
import com.insigma.business.qrcode.welfare.request.CareWelfareServiceOrganizationUpdateRequest;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author juffett
 * @version $Id: CareWelfareServiceOrganizationConsumerImpl.java, v 1.0.0 2021-9-9 14:45:13 juffett Exp $
 */
@Service("careWelfareServiceOrganizationConsumer")
public class CareWelfareServiceOrganizationConsumerImpl implements CareWelfareServiceOrganizationConsumer {

    @Resource
    private CareWelfareServiceOrganizationProvider careWelfareServiceOrganizationProvider;

    /**
     * @see CareWelfareServiceOrganizationConsumer#searchCareWelfareServiceOrganization(CareWelfareServiceOrganizationSearchRequest)
     */
    @Override
    public BasePagingResponse<List<CareWelfareServiceOrganizationDTO>> searchCareWelfareServiceOrganization(final CareWelfareServiceOrganizationSearchRequest searchRequest) {
        return careWelfareServiceOrganizationProvider.searchCareWelfareServiceOrganization(searchRequest);
    }

   /**
    * @see CareWelfareServiceOrganizationConsumer#getCareWelfareServiceOrganization(BaseGetRequest)
    */
    @Override
    public BaseResponse<CareWelfareServiceOrganizationDTO> getCareWelfareServiceOrganization(final BaseGetRequest baseGetRequest) {
        return careWelfareServiceOrganizationProvider.getCareWelfareServiceOrganization(baseGetRequest);
    }

    @Override
    public BaseResponse<String> insertCareWelfareServiceOrganization(final CareWelfareServiceOrganizationInsertRequest insertRequest) {
        return careWelfareServiceOrganizationProvider.insertCareWelfareServiceOrganization(insertRequest);
    }

    @Override
    public BaseResponse<Integer> updateCareWelfareServiceOrganization(final CareWelfareServiceOrganizationUpdateRequest updateRequest) {
        return careWelfareServiceOrganizationProvider.updateCareWelfareServiceOrganization(updateRequest);
    }

    @Override
    public BaseResponse<Integer> deleteCareWelfareServiceOrganization(final BaseDeleteRequest deleteRequest) {
        return careWelfareServiceOrganizationProvider.deleteCareWelfareServiceOrganization(deleteRequest);
    }

    @Override
    public BaseResponse<Integer> publishOrg(CareWelfareServiceOrganizationUpdateRequest request) {
        return careWelfareServiceOrganizationProvider.publishOrg(request);
    }
}
